<template>
  <div class="app-container">
    <!-- 路由出口 -->
    <router-view></router-view>
    <!-- tabbar -->
    <van-tabbar
      v-model="active"
      active-color="#E40137"
      inactive-color="#BAC0CD"
      route
    >
      <van-tabbar-item to="/company" icon="home-o">
        <span>公司</span>
        <template #icon>
          <i class="iconfont iconicon_footbar_gs_sel"></i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/question" icon="search">
        <span>刷题</span>
        <template #icon>
          <i class="iconfont iconicon_footbar_st_sel"></i> </template
      ></van-tabbar-item>
      <van-tabbar-item to="/find" icon="friends-o">
        <span>发现</span>
        <template #icon>
          <i class="iconfont iconicon_footbar_fx_nor"></i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/my" icon="setting-o">
        <span>我的</span>
        <template #icon>
          <i class="iconfont iconicon_footbar_wode_nor"></i>
        </template>
      </van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'app',
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style lang="less"></style>
